package com.linghang.dao;

import com.linghang.pojo.Blog;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface BlogMapper {
    @Select("insert into blog(id,title,author,create_time,views)\n" +
            "        values (#{id},#{title},#{author},#{createTime},#{views})")
    int addBook(Blog blog);

    //查询博客
    List<Blog> queryBlogIf(Map map);

    //查询语句
    List<Blog> queryBlogChoose(Map map);
}
